/*
 * @Author: 灰灰
 * @Date: 2021-12-24 15:11:13
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-01-07 12:00:10
 */
// 全局组件注册

import SvgIcon from './SvgIcon' // svg component
import PageBox from './PageBox' // PageBox component
import EchartView from './EchartView' // svg component
import CommonTable from './CommonTable'

const components = {
  SvgIcon,
  PageBox,
  EchartView,
  CommonTable
}

const install = function (Vue, opts = {}) {
  Object.keys(components).forEach(key => {
    Vue.component(key, components[key])
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export default {
  install,
  components
}